<template>
  <chargeOne v-if="chargeType === '1'" />
  <chargeTwo v-else-if="chargeType === '2'" />
  <chargeThree v-else />
</template>

<script setup>
import { useRouter, useRoute } from 'vue-router'
import { getSystemConfig } from '@/utils/systemConfig'
import chargeOne from './chargeOne.vue'
import chargeTwo from './chargeTwo.vue'
import chargeThree from './chargeThree.vue'

const chargeType = getSystemConfig('OUTPATIENT_BILLING_PAGE_STYLE') //门诊收费页样式

const route = useRoute()
const router = useRouter()

onMounted(() => {
  router.push({
    path: '/out-registration/charge',
    query: { ...route.query, view: chargeType }
  })
})
// const chargeType = getSystemConfig('OUTPATIENT_BILLING_PAGE_STYLE') //门诊收费页样式
</script>
<style lang="less" scoped></style>
